/*******************************************************************************
 * Copyright (c) 1999, 2014 IBM Corp.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * and Eclipse Distribution License v1.0 which accompany this distribution. 
 *
 * The Eclipse Public License is available at 
 *    http://www.eclipse.org/legal/epl-v10.html
 * and the Eclipse Distribution License is available at 
 *   http://www.eclipse.org/org/documents/edl-v10.php.
 */
package com.dlna.ftp;

import java.util.Calendar;


import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Looper;
import android.support.v4.app.NotificationCompat.Builder;
import android.widget.Toast;



/**
 * Provides static methods for creating and showing notifications to the user.
 *
 */
public class Notify {  

  /**
   * Display a toast notification to the user
   * @param context Context from which to create a notification
   * @param text The text the toast should display
   * @param duration The amount of time for the toast to appear to the user
   */
  public static void toast(Context context, CharSequence text, int duration) {
	/*Looper.prepare();  */
    Toast toast = Toast.makeText(context, text, duration);
    toast.show();
  /*  Looper.loop();*/
  }

}
